package com.itheima.api.client.blogAdminReport;

import com.itheima.api.client.dto.TBlogDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "blog-article")
public interface ReportFeignClient {

    @GetMapping("/blog/fingLogAndCommentNumber")
    ReportVO fingLogAndCommentNumber();

    @GetMapping("/blog/classificationNumber")
    List<Long> classificationNumber(@RequestParam("categoryIds") List<Integer> categoryIds);

    @GetMapping("/blog/labelNumber")
    ReportVO labelNumber();

    @GetMapping("/blog/provinceBlogs")
    List<ReportVO> provinceBlogs(@RequestParam("type") Integer type);

    @GetMapping("/blog/contributeForLastYear")
    ReportVO contributeForLastYear();

    @GetMapping("/blog/detail")
    List<TBlogDto> blogDetail(@RequestParam Long blogId);


}